package com.shiguiwu.springmybatis.javabase.reflect;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 人类
 * @author: stone
 * @date: Created by 2021/2/7 17:18
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.reflect
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Person<T> {

    @AName(name = "周冬修")
    private String name;

    private Integer age;

    public String talk = "说话";

    private T t;

    public static String hang = "两只小手";



    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", talk='" + talk + '\'' +
                '}';
    }
}
